/**
 * 
 */
package com.gragra.structures.generators;
/**
 * This class adds replacing all numbers with "NUMBER" to the functions of the superclass
 * @author Christoph Teichmann
 * created Nov 14, 2012 11:37:31 AM
 * @version 0.1
 */
public class NoNumbers extends SplitOnWhiteSpaceSplitOfSurroundingPunctuation
{

	/* (non-Javadoc)
	 * @see com.gragra.structures.generators.SplitOnWhiteSpaceSplitOfSurroundingPunctuation#process(java.lang.String)
	 */
	@Override
	protected String process(String input)
	{
		return super.process(input.replaceAll("\\s\\d+\\s|^\\d+\\s|\\s\\d+$", " 1NUMBER "));
	}
}